package com.example.eurekaclient.web;

import com.example.eurekaclient.common.HelloRemote;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author ： yy
 * @date ：Created in 19-8-21 下午2:16
 * @description：
 * @modified By：
 * @version: $
 */
@RestController
public class HystrixTestController {

    @Autowired
    private HelloRemote HelloRemote;
    @GetMapping("/hello")
    public String hello(){
        return HelloRemote.hello("66666");
    }
}
